﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Client
{
    public partial class UserInfoControl : UserControl
    {
        private string id;
        private string name;

        private MainForm form;

        public UserInfoControl(MainForm mainForm, string userID, string userName)
        {
            InitializeComponent();  

            id = userID;
            name = userName;

            lbID.Text = id;
            lbName.Text = name;

            form = mainForm;
        }

        // 로그아웃 이벤트
        private void btnLogout_Click(object sender, EventArgs e)
        {
            form.ClearUserData();
            form.CheckLoginState();
            form.ChangeLoginMenu(false);
        }
    }
}
